﻿<?php
session_start();
if (isset($_SESSION["user"])) {
	$user=$_SESSION["user"];
}else{
	echo "<script>alert('请先登录'); window.location.href='/index.php';</script>";
}
?>